package com.aisino.encrypt.entity;

/**
 * 非对称加密算法
 */
public enum Asymmetric {
    /**
     * 非对称加密
     */
    /**
     * DH加密
     */
    DH("DH",1024),
    /**
     * RSA加密
     */
    RSA("RSA",1024);
    //算法
    private String algorithm;
    //密钥位数
    private int keySize;

    Asymmetric(String algorithm, int keySize) {
        this.algorithm = algorithm;
        this.keySize = keySize;
    }

    public String getAlgorithm() {
        return this.algorithm;
    }

    public int getKeySize() {
        return this.keySize;
    }
}
